/*
 * @Author: xuhua
 * @Date: 2023-09-13 09:49:26
 * @LastEditors: xuhua
 * @LastEditTime: 2023-09-15 17:39:41
 * @FilePath: /v3-element-admin/src/main.ts
 * @Description:
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import { setupStore } from "@/store";
import { setupDirective } from "@/directive";

import "@/permission";
// 本地svg图标
import "virtual:svg-icons-register";

// 样式
import "element-plus/theme-chalk/dark/css-vars.css";
import "@/styles/index.scss";
import "uno.css";

const app = createApp(App);
// 全局注册自定义指令
setupDirective(app);
// 全局注册状态管理
setupStore(app);

app.use(router).mount("#app");
